package jp.co.piratealliance.pirateAllianceWeb.web.action.goods;

import java.util.List;

import jp.co.piratealliance.pirateAllianceWeb.common.base.BaseAction;
import jp.co.piratealliance.pirateAllianceWeb.dto.goods.ResourceTypeInfoDto;
import jp.co.piratealliance.pirateAllianceWeb.service.goods.GoodsService;


/**
 * copyright pirate alliance team 2014
 *
 * @author lunxing
 */

public class ResourceTypeListAction extends BaseAction {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private GoodsService goodsService;

	private List<ResourceTypeInfoDto> resourceTypeList;

	private String goods_id;

	public String getAllResourceTypeList()
	{
		this.resourceTypeList = this.goodsService.getAllResourceTypeList();
		return SUCCESS;
	}

	public String getResourceTypeInfoListByGoodsId()
	{
		this.resourceTypeList = this.goodsService.getResourceTypeListByGoodsId(this.goods_id);
		return SUCCESS;
	}

	/**
	 * @return the goodsService
	 */
	public GoodsService getGoodsService() {
		return goodsService;
	}

	/**
	 * @param goodsService the goodsService to set
	 */
	public void setGoodsService(GoodsService goodsService) {
		this.goodsService = goodsService;
	}

	/**
	 * @return the resourceTypeList
	 */
	public List<ResourceTypeInfoDto> getResourceTypeList() {
		return resourceTypeList;
	}

	/**
	 * @param resourceTypeList the resourceTypeList to set
	 */
	public void setResourceTypeList(List<ResourceTypeInfoDto> resourceTypeList) {
		this.resourceTypeList = resourceTypeList;
	}

	/**
	 * @return the goods_id
	 */
	public String getGoods_id() {
		return goods_id;
	}

	/**
	 * @param goods_id the goods_id to set
	 */
	public void setGoods_id(String goods_id) {
		this.goods_id = goods_id;
	}

}
